<?php


namespace App\Admin\Extensions\Actions;


use Illuminate\Http\Request;
use Maatwebsite\Excel\Facades\Excel;

class GoodsImport extends ImportButton
{

    public function handle(Request $request)
    {
        Excel::import(new \App\Import\GoodsImport(), $request->file('file'));
        return $this->response()->success('导入成功')->refresh();
    }
}
